package com.itheima.modifier;

public class Child2 extends Father{

    //同一个包中的子类
    public void show() {
        //privateMethod();     //报错
        defaultMethod();
        protectedMethod();
        publicMethod();

        Father father = new Father();
        //father.privateMethod();     //报错
        father.defaultMethod();
        father.protectedMethod();
        father.publicMethod();
    }
}
